<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<%@include file="/WEB-INF/taglibs/common/taglibs.jsp" %>

<head>
	<title>Update profile</title>
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
	<link  rel="stylesheet" href="<c:url value='/css/styles.css'/>" />
	<script src="<c:url value="/javascripts/common.js"/>" ></script>
</head>

<body><div class="page"><%@include file="../top_menu.jsp"%><table width=100%>
	<tr>
		<td><c:import url="/WEB-INF/jsp/menu/payee_menu.jsp" /></td>
	</tr>
	<tr>
		<td><%@include file="/WEB-INF/jsp/include/messages.jsp"%>
		<br />
		</td>
	</tr>

</table><div class="contentArea">
<table border=0 cellpadding=0 cellspacing=0 width=100%> 
<tr><td valign="top"> 
</td> 
<td valign="top">

    
    <table border=0 cellpadding=0 cellspacing=0 width="100%">
    <tr><td colspan="2">
		<%@include file="/WEB-INF/jsp/include/header.jsp"%>
		</td>
			</tr>
		<tr><td >
				<c:import url="/WEB-INF/jsp/include/provider.jsp" />
				</td>
				<td >
				&nbsp;
				</td>
			</tr>
    	<tr><td colspan="2" align="center"><h2>Update payee profile</h2></td></tr>
		<tr><td colspan="2">
			<form:form commandName="payeeProfile" method="post" action="update_payee_profile.htm">
		<form:errors path="*" cssClass="errors"/>
		<table width=70% class="formTable">

		<tr class="formHeader">
		    	<td colspan="2" align="left"><b>Update Payee Profile</b> 
		    	<form:hidden path="id"   />
		    	<form:hidden path="profile.id"   />
		    	<form:hidden path="level1UserID"   />
		    	<form:hidden path="profile.userId"   />
		    	<form:hidden path="role.id"   />
		     
		    	</td>
		    </tr>
			    		    
			<tr>
				<td colspan="2" align="center">
					<input type="submit" class='ui-button ui-state-default ui-corner-all' value="Save" />
					<input type="button" class='ui-button ui-state-default ui-corner-all' value="Cancel" onclick="location.href='view_payees.htm'" /> 
				</td>
			</tr>
		
		<tr bgcolor="#E9E9E9">
		    	<td colspan="2" align="left"><b>Account Information</b></td>
		    </tr>
		    	    
		    <tr>
		    	<td><font color=red>*</font> Email</td>
		    	<td>
		    		<form:input path="email" size="40" />
		    		<div class="errors"><form:errors path="email"/></div>
		    	</td>
		    </tr>
		    
		     	    
		    <tr>
		    	<td><font color=red>*</font> Alternate Address</td>
		    	<td>
		    		<form:input path="emailGUID" size="40" />
		    		<div class="errors"><form:errors path="emailGUID"/></div>
		    	</td>
		    </tr>
		    
		     <tr>
		    	<td><font color=red>*</font> Password</td>
		    	<td>
		    		<form:password path="password" size="40" />
		    		<div class="errors"><form:errors path="password"/></div>
		    	</td>
		    </tr>
		     <tr>
		    	<td> Active?</td>
		    	<td>
		    		<form:checkbox path="enabled" />
		    		<div class="errors"><form:errors path="enabled"/></div>
		    	</td>
		    </tr>
		     <tr>
		    	<td> Delete</td>
		    	<td>
		    		<form:checkbox path="deleted" />
		    		<div class="errors"><form:errors path="deleted"/></div>
		    	</td>
		    </tr>
		    
		    <tr>
		    	<td> Show GUI</td>
		    	<td>
		    		<form:checkbox path="showGui" />
		    		<div class="errors"><form:errors path="showGui"/></div>
		    	</td>
		    </tr>
		    <tr bgcolor="#E9E9E9">
		    	<td colspan="2" align="left"><b>General Information</b></td>
		    </tr>
		    	    
		    <tr>
		    	<td><font color=red>*</font> First Name</td>
		    	<td>
		    		<form:input path="profile.firstName" size="40" />
		    		<div class="errors"><form:errors path="profile.firstName"/></div>
		    	</td>
		    </tr>
	
		    <tr>
		    	<td>Middle Name</td>
		    	<td><form:input path="profile.middleName" size="40" /></td>
		    </tr>
	
		    <tr>
		    	<td><font color=red>*</font> Last Name</td>
		    	<td>
		    		<form:input path="profile.lastName" size="40" />
		    		<div class="errors"><form:errors path="profile.lastName"/></div>
		    	</td>
		    </tr>
		    
		    <tr>
		    	<td> EFIN</td>
		    	<td>
		    		<form:input path="profile.efin" size="40" />
		    		<div class="errors"><form:errors path="profile.efin"/></div>
		    	</td>
		    </tr>

		    <tr>
		    	<td>SSN</td>
		    	<td><form:input path="profile.ssn" size="40" /></td>
		    </tr>
		    	
		    <tr>
		    	<td><font color=red>*</font> Business Name</td>
		    	<td>
		    		<form:input path="profile.businessName" size="40" />
		    		<div class="errors"><form:errors path="profile.businessName"/></div>
		    	</td>
		    </tr>
		   	    
		    <tr>
		    	<td>Pager</td>
		    	<td><form:input path="profile.pager" size="40" /></td>
		    </tr>
		    
		    <tr bgcolor="#E9E9E9">
		    	<td colspan="2" align="left"><b>Contact Information</b></td>
		    </tr>
	
		    <tr>
		    	<td>Address</td>
		    	<td><form:input path="profile.contactAddress" size="40" /></td>
		    </tr>
	
		    <tr>
		    	<td>City</td>
		    	<td><form:input path="profile.contactCity" size="40" /></td>
		    </tr>
		    
		    <tr>
		    	<td>State</td>
		    	<td><form:select path="profile.contactState">
		    	<option value="-1">Select one</option>
			<option value="AL">Alabama</option>
			<option value="AK">Alaska</option>
			<option value="AZ">Arizona</option>
			<option value="AR">Arkansas</option>
			<option value="CA">California</option>
			<option value="CO">Colorado</option>
			<option value="CT">Connecticut</option>
			<option value="DE">Delaware</option>
			<option value="FL">Florida</option>
			<option value="GA">Georgia</option>
			<option value="HI">Hawaii</option>
			<option value="ID">Idaho</option>
			<option value="IL">Illinois</option>
			<option value="IN">Indiana</option>
			<option value="IA">Iowa</option>
			<option value="KS">Kansas</option>
			<option value="KY">Kentucky</option>
			<option value="LA">Louisiana</option>
			<option value="ME">Maine</option>
			<option value="MD">Maryland</option>
			<option value="MA">Massachusetts</option>
			<option value="MI">Michigan</option>
			<option value="MN">Minnesota</option>
			<option value="MS">Mississippi</option>
			<option value="MO">Missouri</option>
			<option value="MT">Montana</option>
			<option value="NE">Nebraska</option>
			<option value="NV">Nevada</option>
			<option value="NH">New Hampshire</option>
			<option value="NJ">New Jersey</option>
			<option value="NM">New Mexico</option>
			<option value="NY">New York</option>
			<option value="NC">North Carolina</option>
			<option value="ND">North Dakota</option>
			<option value="OH">Ohio</option>
			<option value="OK">Oklahoma</option>
			<option value="OR">Oregon</option>
			<option value="PA">Pennsylvania</option>
			<option value="RI">Rhode Island</option>
			<option value="SC">South Carolina</option>
			<option value="SD">South Dakota</option>
			<option value="TN">Tennessee</option>
			<option value="TX">Texas</option>
			<option value="UT">Utah</option>
			<option value="VT">Vermont</option>
			<option value="VA">Virginia</option>
			<option value="WA">Washington</option>
			<option value="WV">West Virginia</option>
			<option value="WI">Wisconsin</option>
			<option value="WY">Wyoming</option>
			
			</form:select>
		    	</td>
		    </tr>
		    
		    <tr>
		    	<td>Country</td>
		    	<td><form:select path="profile.contactCountry" >
		    	<form:option value="USA">USA</form:option></form:select></td>
		    </tr>
	
		    <tr>
		    	<td>Zip Code</td>
		    	<td><form:input path="profile.contactZip" size="40" /></td>
		    </tr>
		    	    
		    <tr>
		    	<td>First Office Phone Number</td>
		    	<td><form:input path="profile.firstContactPhone" size="40" /></td>
		    </tr>
		    
		     <tr>
		    	<td>Second Office Phone Number</td>
		    	<td><form:input path="profile.secondContactPhone" size="40" /></td>
		    </tr>
		    
		    <tr>
		    	<td>Fax Number</td>
		    	<td><form:input path="profile.contactFax" size="40" /></td>
		    </tr>
		    
		    <tr>
		    	<td>Cell Number</td>
		    	<td><form:input path="profile.contactCell" size="40" /></td>
		    </tr>
		    
		   <tr>
		    	<td><font color=red>*</font>Cell Phone Provider</td>
 
					<td>
						<form:select path="profile.contactCellProvider"  >
							<form:option value="0"  label="Please Select Cell Provider" onclick="document.getElementById('otherCellProvider').disabled=true"></form:option>
							<form:option value="cp1" onclick="document.getElementById('otherCellProvider').disabled=true"></form:option>
							<form:option value="cp2" onclick="document.getElementById('otherCellProvider').disabled=true"></form:option>
							<form:option value="cp3" onclick="document.getElementById('otherCellProvider').disabled=true"></form:option>
							<form:option id="otherChoice" onclick="document.getElementById('otherCellProvider').disabled=false" value="" label="Other"></form:option>
						</form:select>
						<div class="errors"><form:errors path="profile.contactCellProvider"/></div>
					</td>
					
		    </tr>
		    <tr>
		    	<td></td>
		    	<td><input id="otherCellProvider" disabled="true" onchange="document.getElementById('otherChoice').value=this.value" /></td>
		    </tr>
		    
		    <tr bgcolor="#E9E9E9">
		    	<td colspan="2" align="left"><b>Business Information</b></td>
		    </tr>

		    <tr>
		    	<td colspan="2">
					<input type="radio" name="bsac" value="bsac1" id="bsac1" onclick="fillBusinessInfo();" >Same as Contact Information</input>
		    			<br />
		    			<input type="radio" name="bsac" value="bsac2" id="bsac2" onclick="fillBusinessInfo();" >Same as Shipping Info</input>	    	
		    			<br/>
		    			<input type="radio" name="bsac" value="clearB" id="clearB" onclick="clearBusinessInfo();" >none</input>
		    	</td>		    	
		    </tr>
		    		    
		    <tr>
		    	<td>Address</td>
		    	<td><form:input path="profile.businessAddress" size="40" /></td>
		    </tr>
	
		    <tr>
		    	<td>City</td>
		    	<td><form:input path="profile.businessCity" size="40" /></td>
		    </tr>
		    
		    <tr>
		    	<td>State</td>
		    	<td><form:select path="profile.businessState"><option value="-1">Select one</option>
			<option value="AL">Alabama</option><option value="AK">Alaska</option>
			<option value="AZ">Arizona</option><option value="AR">Arkansas</option>
			<option value="CA">California</option><option value="CO">Colorado</option>
			<option value="CT">Connecticut</option><option value="DE">Delaware</option>
			<option value="FL">Florida</option><option value="GA">Georgia</option><option value="HI">Hawaii</option>
			<option value="ID">Idaho</option><option value="IL">Illinois</option>
			<option value="IN">Indiana</option>	<option value="IA">Iowa</option>
			<option value="KS">Kansas</option>	<option value="KY">Kentucky</option>
			<option value="LA">Louisiana</option>	<option value="ME">Maine</option>
			<option value="MD">Maryland</option>	<option value="MA">Massachusetts</option>
			<option value="MI">Michigan</option>	<option value="MN">Minnesota</option>
			<option value="MS">Mississippi</option>		<option value="MO">Missouri</option>
			<option value="MT">Montana</option>		<option value="NE">Nebraska</option>
			<option value="NV">Nevada</option>		<option value="NH">New Hampshire</option>
			<option value="NJ">New Jersey</option>		<option value="NM">New Mexico</option>
			<option value="NY">New York</option>		<option value="NC">North Carolina</option>
			<option value="ND">North Dakota</option>		<option value="OH">Ohio</option>
			<option value="OK">Oklahoma</option>		<option value="OR">Oregon</option>
			<option value="PA">Pennsylvania</option>		<option value="RI">Rhode Island</option>
			<option value="SC">South Carolina</option>		<option value="SD">South Dakota</option>
			<option value="TN">Tennessee</option>		<option value="TX">Texas</option>
			<option value="UT">Utah</option>		<option value="VT">Vermont</option>
			<option value="VA">Virginia</option>		<option value="WA">Washington</option>
			<option value="WV">West Virginia</option>	<option value="WI">Wisconsin</option>
			<option value="WY">Wyoming</option>
			
			</form:select></td>
		    </tr>
		    
		    <tr>
		    	<td>Country</td>
		    	<td><form:select path="profile.businessCountry" >
		    	<form:option value="USA">USA</form:option></form:select></td>
		    </tr>
		    
		    <tr>
		    	<td>Zip Code</td>
		    	<td><form:input path="profile.businessZip" size="40" /></td>
		    </tr>
		    	    
		    <tr>
		    	<td>Phone Number</td>
		    	<td><form:input path="profile.businessPhone" size="40" /></td>
		    </tr>
		    
		    <tr>
		    	<td>Fax Number</td>
		    	<td><form:input path="profile.businessFax" size="40" /></td>
		    </tr>	    
		    
		    <tr bgcolor="#E9E9E9">
		    	<td colspan="2" align="left"><b>Shipping Information</b></td>
		    </tr>
		    	  
		    <tr>
		    	<td colspan="2">
					<input type="radio" name="ssac" value="ssac1" id="ssac1" onclick="fillShippingInfo();" >Same as Contact Information</input>
					<br />
		    		<input type="radio" name="ssac" value="ssac2" id="ssac2" onclick="fillShippingInfo();" >Same as Business Info</input><br/>	
		    			<input type="radio" name="ssac" value="ssacC" id="ssacC" onclick="clearShippingInfo();" >None</input>	    	
		    	</td>		    	
		    </tr>
		    		    	   
		    <tr>
		    	<td>Address</td>
		    	<td><form:input path="profile.shippingAddress" size="40" /></td>
		    </tr>
	
		    <tr>
		    	<td>City</td>
		    	<td><form:input path="profile.shippingCity" size="40" /></td>
		    </tr>
		    
		    <tr>
		    	<td>State</td>
		    	<td><form:select path="profile.shippingState"><option value="-1">Select one</option>
			<option value="AL">Alabama</option>			<option value="AK">Alaska</option>
			<option value="AZ">Arizona</option>			<option value="AR">Arkansas</option>
			<option value="CA">California</option>			<option value="CO">Colorado</option>
			<option value="CT">Connecticut</option>			<option value="DE">Delaware</option>
			<option value="FL">Florida</option>			<option value="GA">Georgia</option>
			<option value="HI">Hawaii</option>		<option value="ID">Idaho</option>
			<option value="IL">Illinois</option>			<option value="IN">Indiana</option>
			<option value="IA">Iowa</option>			<option value="KS">Kansas</option>
			<option value="KY">Kentucky</option>		<option value="LA">Louisiana</option>
			<option value="ME">Maine</option>			<option value="MD">Maryland</option>
			<option value="MA">Massachusetts</option>			<option value="MI">Michigan</option>
			<option value="MN">Minnesota</option>			<option value="MS">Mississippi</option>
			<option value="MO">Missouri</option>			<option value="MT">Montana</option>
			<option value="NE">Nebraska</option>			<option value="NV">Nevada</option>
			<option value="NH">New Hampshire</option>			<option value="NJ">New Jersey</option>
			<option value="NM">New Mexico</option>			<option value="NY">New York</option>
			<option value="NC">North Carolina</option>			<option value="ND">North Dakota</option>
			<option value="OH">Ohio</option>			<option value="OK">Oklahoma</option>
			<option value="OR">Oregon</option>			<option value="PA">Pennsylvania</option>
			<option value="RI">Rhode Island</option>			<option value="SC">South Carolina</option>
			<option value="SD">South Dakota</option>			<option value="TN">Tennessee</option>
			<option value="TX">Texas</option>			<option value="UT">Utah</option>
			<option value="VT">Vermont</option>			<option value="VA">Virginia</option>
			<option value="WA">Washington</option>			<option value="WV">West Virginia</option>
			<option value="WI">Wisconsin</option>			<option value="WY">Wyoming</option>
			
			</form:select>
			</td>
		    </tr>
		    
		    <tr>
		    	<td>Country</td>
		    	<td><form:select path="profile.shippingCountry">
		    	<form:option value="USA">USA</form:option></form:select></td>
		    </tr>
		    
		    <tr>
		    	<td>Zip Code</td>
		    	<td><form:input path="profile.shippingZip" size="40" /></td>
		    </tr>
		    	    
		    <tr>
		    	<td>Phone Number</td>
		    	<td><form:input path="profile.shippingPhone" size="40" /></td>
		    </tr>
		    
		    <tr>
		    	<td>Fax Number</td>
		    	<td><form:input path="profile.shippingFax" size="40" /></td>
		    </tr>
		    
		    <tr bgcolor="#E9E9E9">
		    	<td colspan="2" align="left"><b>Preferences</b></td>
		    </tr>
		    
		    <tr>
		    	<td>Message Notification Type</td>
		    	<td>
					<input type="radio" name="msg" value=1 disabled="true"/>Email<br/>
				    <input type="radio" name="msg" value=2 disabled="true"/>Text Message<br/>
				    <input type="radio" name="msg" value=3 disabled="true"/>Both<br/>
				    <input type="radio" name="msg" value=4 disabled="true"/>None<br/>	    	
		    	</td>
		    </tr>
		    	    
		    <tr>
		    	<td>Message Notification Alert</td>
		    	<td>
					<input type="checkbox" name="msg1" value=1 disabled="true"/>Every Time Status Changes<br/>
				    <input type="checkbox" name="msg1" value=2 disabled="true"/>Only When Check is Mailed<br/>
				    <input type="checkbox" name="msg1" value=3 disabled="true"/>When Money Transferred to Debit Card<br/>
				    <input type="checkbox" name="msg1" value=4 disabled="true"/>Reply to Message is sent<br/>	    	
		    	</td>
		    </tr>
		    
			<tr>
				<td colspan="2" align="center">
					<input type="submit" class='ui-button ui-state-default ui-corner-all' value="Save" />
					<input type="button" class='ui-button ui-state-default ui-corner-all' value="Cancel" onclick="location.href='view_payees.htm'" />
				</td>
			</tr>
			</table>
			</form:form>
			</td>
		</tr>		  	    	    
	</table>	
</td>
</tr>

<script language="javascript">
function fillBusinessInfo() {
	
	var chk1 = document.getElementById("bsac1");
	var chk2 = document.getElementById("bsac2");
	
	if (chk1.checked) {
		document.getElementById("profile.businessAddress").value = document.getElementById("profile.contactAddress").value;
		document.getElementById("profile.businessCity").value = document.getElementById("profile.contactCity").value;
		document.getElementById("profile.businessState").value = document.getElementById("profile.contactState").value;
		document.getElementById("profile.businessCountry").value = document.getElementById("profile.contactCountry").value;
		document.getElementById("profile.businessZip").value = document.getElementById("profile.contactZip").value;
		document.getElementById("profile.businessPhone").value = document.getElementById("profile.firstContactPhone").value;
		document.getElementById("profile.businessFax").value = document.getElementById("profile.contactFax").value;			 
	} else if(chk2.checked){
		document.getElementById("profile.businessAddress").value = document.getElementById("profile.shippingAddress").value;
		document.getElementById("profile.businessCity").value = document.getElementById("profile.shippingCity").value ;
		document.getElementById("profile.businessState").value = document.getElementById("profile.shippingState").value;
		document.getElementById("profile.businessCountry").value = document.getElementById("profile.shippingCountry").value;
		document.getElementById("profile.businessZip").value = document.getElementById("profile.shippingZip").value;
		document.getElementById("profile.businessPhone").value = document.getElementById("profile.shippingPhone").value;
		document.getElementById("profile.businessFax").value = document.getElementById("profile.shippingFax").value;
	}
}

function clearBusinessInfo() {
		document.getElementById("profile.businessAddress").value = "";
		document.getElementById("profile.businessCity").value = "";
		document.getElementById("profile.businessZip").value = "";
		document.getElementById("profile.businessPhone").value ="";
		document.getElementById("profile.businessFax").value ="";			 
}

function clearShippingInfo() {
	document.getElementById("profile.shippingAddress").value = "";
	document.getElementById("profile.shippingCity").value ="";
	document.getElementById("profile.shippingZip").value = "";
	document.getElementById("profile.shippingPhone").value = "";
	document.getElementById("profile.shippingFax").value = "";						 
}

function fillShippingInfo() {
	var chk1 = document.getElementById("ssac1");
	var chk2=document.getElementById("ssac2");
	//alert(chk);
	if (chk1.checked) {
		document.getElementById("profile.shippingAddress").value = document.getElementById("profile.contactAddress").value;
		document.getElementById("profile.shippingCity").value = document.getElementById("profile.contactCity").value;
		document.getElementById("profile.shippingState").value = document.getElementById("profile.contactState").value;
		document.getElementById("profile.shippingCountry").value = document.getElementById("profile.contactCountry").value;
		document.getElementById("profile.shippingZip").value = document.getElementById("profile.contactZip").value;
		document.getElementById("profile.shippingPhone").value = document.getElementById("profile.firstContactPhone").value;
		document.getElementById("profile.shippingFax").value = document.getElementById("profile.contactFax").value;			 
	} else if(chk2.checked) {
		document.getElementById("profile.shippingAddress").value = document.getElementById("profile.businessAddress").value;
		document.getElementById("profile.shippingCity").value = document.getElementById("profile.businessCity").value;
		document.getElementById("profile.shippingState").value = document.getElementById("profile.businessState").value;
		document.getElementById("profile.shippingCountry").value = document.getElementById("profile.businessCountry").value;
		document.getElementById("profile.shippingZip").value = document.getElementById("profile.businessZip").value;
		document.getElementById("profile.shippingPhone").value = document.getElementById("profile.businessPhone").value;
		document.getElementById("profile.shippingFax").value = document.getElementById("profile.businessFax").value;
	}
}	
</script>
</table> </div>	</div><%@include file="/WEB-INF/jsp/include/footer.jsp"%>
</body>
</html>